package com.zhao.dota.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zhao.dota.struct.Tree;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(of = "id", callSuper = false)
public class Permission extends Tree implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String code;
    @TableField("`desc`")
    private String desc;

    private String path;

    private Boolean menu;

    private Integer parentId;

    private String icon;

}
